import { createRouter, createWebHistory } from "vue-router";
import { conrouter } from '@/routes/routes'
import { GET_TOKEN } from '@/utils/token.ts'

const router = createRouter({
    history: createWebHistory(),
    routes: conrouter,
})

// router.beforeEach((to, from, next) => {
//     if (GET_TOKEN()) {
//         console.log(GET_TOKEN())
//         next()
//     } else {
//         console.log('mei')

//     }
//     next()
// })
export default router